<?php
$this->pageTitle = Yii::app()->name . ' - Login';
$this->breadcrumbs = array(
	'Login',
);
?>
<div class="container prepend-top append-bottom">
	<div class="span-10 prepend-2">
		<div class="box_white">
			<div class="biz-form margin">
				<h3>How It Works</h3>
				<div class="tips">Yawii is an instant marketing tool and easy to get people nearby know your business campaign.</div>
				<ul class="line">
					<li>Publish special offers with Yawii Business Platform</li>
					<li>People receive the offers with mobile app</li>
					<li>When consumers come with mobile app, you can make it happen</li>
				</ul>
			</div>
		</div>
		<div class="box_white prepend-top append-bottom">
			<div class="biz-form margin">
				<h3>Why Yawii</h3>
				<div class="tips">We help companies to increase their customers.</div>
				<ul class="line">
					<li><strong>Fast and flexible</strong><br /><span class="hits">Take just <b>5</b> minutes to publish special offers based on your business needs.</span></li>
					<li><strong>Save Money</strong><br /><span class="hits">As you increase your revenue, we are confident that Yawii also <b>reduce your marketing costs</b>.</span></li>
					<li><strong>Precise and under the control</strong><br /><span class="hits">Yawii automatically locates consumers and shows relevant deals to them.</span></li>
				</ul>
			</div>
		</div>
	</div>
	
	<div class="span-10 prepend-1 last">
		<div class="box_white">
		<div class="biz-form">
			<div class="margin">
				<h3>Login</h3>
			</div>
			
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

<div class="fieldswrap">
<div class="fields">
	<div class="block">
		<div class="lbl"><?php echo $form->labelEx($model,'username'); ?></div>
		<div class="ipt">
			<?php echo $form->textField($model,'username', array('class'=>'auto')); ?>
			<?php echo $form->error($model,'username'); ?>
		</div>
	</div>
	<div class="block">
		<div class="lbl"><?php echo $form->labelEx($model,'password'); ?></div>
		<div class="ipt">
			<?php echo $form->passwordField($model,'password', array('class'=>'auto')); ?>
			<?php echo $form->error($model,'password'); ?>
		</div>
	</div>
	<div class="inline rememberMe">
		<div class="ipt">
			<?php echo $form->checkBox($model,'rememberMe'); ?>
			<?php echo $form->label($model,'rememberMe'); ?>
			<?php echo $form->error($model,'rememberMe'); ?>
		</div>
	</div>
</div><!-- end of .fields -->
</div><!-- end of .fieldswrap -->

	<div class="margin actions">
		<?php echo CHtml::submitButton('Login', array('class' => 'button button-huge button-confirm')); ?>
		<?php echo CHtml::link('<span>Create Your Account for Free</span>', Yii::app()->createUrl('/site/signup'), array('class' => 'button button-compliment', 'style' => 'line-height:19px;')); ?>
	</div>

<?php $this->endWidget(); ?>
			
		</div><!-- end of <div class="biz-form"> -->
		</div>
	</div>
</div>